package com.agou.app.admin.dbconfig.bean;

import java.io.IOException;
import java.lang.reflect.Field;
import java.sql.ResultSet;
import java.sql.SQLException;

import com.agou.core.ss.SSException;
import com.agou.ssh.core.base.BaseTableBean;
import com.agou.ssh.core.db.field.DateField;

/**
 * 管理员-用户信息
 * @author agou
 *
 */
public class TSAdminMenu extends BaseTableBean{

	private static final long serialVersionUID = -8176099881840603005L;
	private long menuId;// MENU_ID
	private long naviId;// NAVI_ID
	private String menuName;// MENU_NAME
	private int menuDesc;// MENU_DESC
	private DateField pmenuId;//PMENU_ID
	private String menuUrl;// MENU_URL
	private int sort;//
	
	private String dataOptions;// MENU_URL
	private int menuType;//
	

	public String getDataOptions() {
		return dataOptions;
	}

	public void setDataOptions(String dataOptions) {
		this.dataOptions = dataOptions;
	}

	public int getMenuType() {
		return menuType;
	}

	public void setMenuType(int menuType) {
		this.menuType = menuType;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	private String menuTarget;// MENU_TARGET
	private int isValid;// IS_VALID
	
	public long getMenuId() {
		return menuId;
	}

	public void setMenuId(long menuId) {
		this.menuId = menuId;
	}

	public long getNaviId() {
		return naviId;
	}

	public void setNaviId(long naviId) {
		this.naviId = naviId;
	}

	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	public int getMenuDesc() {
		return menuDesc;
	}

	public void setMenuDesc(int menuDesc) {
		this.menuDesc = menuDesc;
	}

	public DateField getPmenuId() {
		return pmenuId;
	}

	public void setPmenuId(DateField pmenuId) {
		this.pmenuId = pmenuId;
	}

	public String getMenuUrl() {
		return menuUrl;
	}

	public void setMenuUrl(String menuUrl) {
		this.menuUrl = menuUrl;
	}

	public String getMenuTarget() {
		return menuTarget;
	}

	public void setMenuTarget(String menuTarget) {
		this.menuTarget = menuTarget;
	}

	public int getIsValid() {
		return isValid;
	}

	public void setIsValid(int isValid) {
		this.isValid = isValid;
	}

	public String toString(){
		StringBuilder sbStr = new StringBuilder();
		Field[] fields=this.getClass().getDeclaredFields(); 
		for (Field field : fields) {
			try {
				sbStr.append(field.getName() + " = " + (String)field.get(this));
			} catch (Exception e) {
				sbStr.append(field.getName() + " = " + e.getMessage());
			} 
		}
		return sbStr.toString();
	}

	public void fill(ResultSet rs) throws SSException, SQLException,
			IOException {

	}

}
